A Semantic-Based Approach for Detecting and Decomposing God Classes

نویسندگان

  • Junha Lee
  • Donghun Lee
  • Dae-Kyoo Kim
  • Sooyong Park
چکیده

TestElement ProxyControlGUI 22 46 1.12 29 57 0.98 23 252 0.98 24 30 1.20 22 58 1.08 Figure 8: Measures of CBO, NOM, and IC For each candidate class, a complete weighted graph is built. Figure 9(a) shows the graph for the MenuFactory class. The graph involves 22 nodes representing the methods defined in the class and 231 edges connecting the nodes. The threshold for the class ranges from 0.95 to 2.09 and we experimented a threshold ranging from 1 to 2.1 incremented by 0.1. No edge is removed with threshold 1.0 causing no split and 217 edges are removed with threshold 2.1 resulting in three sub-graphs. In a manually verification, threshold 1.5 produces the best result, which decomposes into two subgraphs with 157 edges removed, each sub-graph representing a single responsibility. One sub-graph involves 18 methods and the other involves 4 methods. Figure 9(b) shows the resulting decomposition. Table 8 shows the threshold ranges used in experiments for each of the candidate God classes. 6.1 Results Analysis From the case study, we observe three types of God classes shown in Figure 10. Type A has two heterogeneous responsibilities, each having an independent set of fan-in and fanout interactions, which should be put in a separate class. This is an example of a obvious need for responsibility decomposition. The MenuFactory, SampleResult , and AbstractTestElement classes belong to Type A. The ManuFactory class has responsibilities of 1) creating menus and 2) controlling the drag and drop function. While the drag and drop function supports menus, its controlling responsibility is not directly related to menus. The SampleResult class involves responsibilities of 1) collecting and storing sample results and 2) measuring the time taken to collect sample results. The collecting and storing functions in the first responsibility is quite heterogeneous to the measuring function in the second responsibility. The AbstractTestElementclass has responsibilities of 1) configuring properties of tested elements and 2)configuring thread context. The target objects concerned in the two responsibilities are completely different types, and thus the responsibilities share no commonality. Table 8: Thresholds and ISS Statistics God Class Item Mean Std. Dev. Min Max Mean Std. Dev. Min Max Mean Std. Dev. Min Max Mean Std. Dev. Min Max Mean Std. Dev. Min Max Value MenuFactory 0.95 ~ 2.09

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Executive Approach Based On the Production of Fuzzy Ontology Using the Semantic Web Rule Language Method (SWRL)

Today, the need to deal with ambiguous information in semantic web languages is increasing. Ontology is an important part of the W3C standards for the semantic web, used to define a conceptual standard vocabulary for the exchange of data between systems, the provision of reusable databases, and the facilitation of collaboration across multiple systems. However, classical ontology is not enough ...

متن کامل

Neuropsychological Decomposing Stroop Interference Into Different Cognitive ‎Monitoring; An Exploratory Factor Analysis

Introduction: There are two alternative explanations of the Stroop phenomenon. Several studies have revealed that the difference in performance on congruent and incongruent trials can arise from response interference. On the contrary, many authors have claimed that Stroop interference might occur at earlier processing stages related to semantic or conceptual encoding. The present study aims to ...

متن کامل

Modeling a semantic recommender system for medical prescriptions and drug interaction detection

Introduction: The administration of appropriate drugs to patients is one of the most important processes of treatment and requires careful decision-making based-on the current conditions of the patient and its history and symptoms. In many cases, patients may require more than one drug, or in addition to having a previous illness and receiving the drug, they need new drugs for the new illness, ...

متن کامل

A Novel Architecture for Detecting Phishing Webpages using Cost-based Feature Selection

Phishing is one of the luring techniques used to exploit personal information. A phishing webpage detection system (PWDS) extracts features to determine whether it is a phishing webpage or not. Selecting appropriate features improves the performance of PWDS. Performance criteria are detection accuracy and system response time. The major time consumed by PWDS arises from feature extraction that ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1204.1967  شماره 

صفحات  -

تاریخ انتشار 2012